package com.pwrd.sframe.conn;

import com.pwrd.sframe.core.Port;

/**
 * @Auther syc.
 * @Date 2017/2/10 11:31.
 */
public class ConnectionInfo {

    // 登录、网关、在线、断开状态
    public enum StatusEnum {
        LOGIN, GATE, ONLINE, CLOSED
    }

    // 连接状态，初始化状态为LOGIN
    public StatusEnum status = StatusEnum.LOGIN;

    public long humanId;

    public int connId;

    public Port port;

    public ConnectionInfo(Port port, Integer connId) {
        this.port = port;
        this.connId = connId;
    }

}
